using System.Web.UI;

using OpenNetCommerce.Localization;

[assembly: TagPrefix("MettleSystems.dashCommerce.Controls", "dashCommerce")]
namespace MettleSystems.dashCommerce.Controls {

  [ToolboxData(@"<{0}:CheckBox ID=""CheckBoxId"" runat=""server"" />")]
  public class CheckBox : System.Web.UI.WebControls.CheckBox
  {
    protected override void Render(HtmlTextWriter writer) {
      if (!string.IsNullOrEmpty(this.ID) && this.Text.Length == 0) {
        this.Text = LocalizationUtility.GetText(this.ID);
      }
      base.Render(writer);
    }
  }
}
